package org.colcon.web.client;

import org.colcon.web.model.User;

import com.google.gwt.user.client.rpc.RemoteService;
import com.google.gwt.user.client.rpc.RemoteServiceRelativePath;

@RemoteServiceRelativePath("service")
public interface ColConService extends RemoteService
{
	String execute(String cmd);
	
	String get(String path);
	String[] open(String path);
	
	User authenticate(String name, String password);
	
	//Item get(String path);
	
	/*
	List<Group> getGroups();
	Group getGroup(String name);
	Boolean addGroup(String name, String text);
	Boolean addMember(String group, String user);
	
	List<User> getUsers();
	User getUser(String name);
	Boolean addUser(String name, String email, String password);
	
	Boolean usePower(String title, String power, Map<String, String> params);
	Ballot submitVote(String votePath, String userId, String voteValue);
	Ballot submitProposal(String votePath, String userId, String voteValue);
	*/
}
